package com.example.boot3.service.Impl;

import com.example.boot3.mapper.ViolationMapper;
import com.example.boot3.model.Violation;
import com.example.boot3.service.ViolationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ViolationServiceImpl implements ViolationService {
    @Autowired
    ViolationMapper violationMapper;
    @Override
    public List<Violation> getViolationList() {
        return violationMapper.getViolationList();
    }

    @Override
    public Integer registerViolation(Violation violation) {
        return violationMapper.registerViolation(violation);
    }
}
